package com.yc.service;

import com.yc.entity.StockEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author yangc91@bngrp.com
 * @date 2020/8/6 14:33
 */
@FeignClient(value = "stock-service")
public interface IStockService {
    @RequestMapping(method = RequestMethod.GET, value = "/stock/get")
    StockEntity get(@RequestParam int id);
    @PostMapping(value = "/stock/update")
    String update_1Num(@RequestParam Long id);
}
